home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-10-10 | 570 b | 26 lines | [TEXT/RLAB] |
- global:
-
- Syntax: global ( VAR1 , VAR2 , VAR3, ... )
-
- Description:
-
- The global statement forces a function to resolve specified
- variable references with the global symbol table. There are no
- restrictions on the placement of global declarations within a
- function. But, since the global statement will not affect
- variables used before the declaration, it is recommended that
- the global declaration be used near the beginning of a
- function.
-
- X = function ( a )
- {
- local ( a )
- global ( b )
-
- c = a*b;
- return c;
- };
-
-
- See Also: FUNCTION, local, static
-